package com.yami.shop.bean.model;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@TableName("ch_user_score_record")
public class UserScoreRecord {
    private static final long serialVersionUID = 2090714647038636896L;
    /**
     * ID
     */
    @TableId(type = IdType.AUTO)
    private String id;

    private String uid;

    /**
     * 记录类型 1支出 2收入
     */
    private Integer type;

    /**
     * 数量
     */
    private Double amount;

    /**
     * 备注
     */
    private String mark;

    /**
     * 添加时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    // @TableField(fill = FieldFill.INSERT)
    private Date createTime;

}
